package com.huishu.coupon.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @authoer:ljj
 * @createDate:2022/5/27
 * @description:
 */
@Component
@Data
@ConfigurationProperties(prefix = "thread.core")
public class ThreadConfigEntity {

    // 核心线程池大小
    private int corePoolSize;
    // 最大可创建的线程数
    private int maxPoolSize;
    // 队列最大长度
    private int queueCapacity;
    // 线程池维护线程所允许的空闲时间
    private int keepAliveSeconds;
}
